//
//  BALLoginRequestEntity.m
//  BALPractice
//
//  Created by zhuhao on 15/3/6.
//  Copyright (c) 2015年 zhuhao. All rights reserved.
//

#import "BALLoginRequestEntity.h"
#import "BALNetworkSecurityHelper.h"

@implementation BALLoginRequestEntity

-(instancetype)init{
    self = [super init];
    if (self) {
        self.urlModulePath =  @"api/user/login";
        self.requestMethod = RequestMethodTypePost;
    }
    return self;
}

- (void)formart{
    [super formart];
    
    self.requestMethod = RequestMethodTypePost;
    
    [self addParam:_userName forKey:@"email"];
    [self addParam:[BALNetworkSecurityHelper stringToMD5:[BALNetworkSecurityHelper stringToMD5:_password]] forKey:@"password"];
}

- (void)afterFormart{
    [super afterFormart];
}

- (id)createDataModelWithResponseData:(id)responseData{
    
    NSDictionary *root = [super createDataModelWithResponseData:responseData];
    
    
    return root;
}


@end
